#include "trap.h"
#include "instr_def.h"

#define ADD_TEST(rs, rt, rd) \
    ADD(rs, rt); \
    li $s2, rd; \
    nop \
    nop \
    bne $s0, $s2, res_error; \
    nop